#include <gtkmm.h>

struct editRelease
{
    Glib::ustring title;
    Glib::DateTime time;
};

class editWindow:public Gtk::Dialog
{
    public:
        editWindow(int mode); //mode: 0-add 1-edit
        virtual ~editWindow();

        using type_signal_finish=sigc::signal<void(editRelease,int)>;
        type_signal_finish signal_finish() {return m_signal_finish;}

    protected:
        Gtk::Calendar mCalender;
        Gtk::Entry entSetTitle; 
        Gtk::Box boxFrame;
        Gtk::Box buttonBox;
        Gtk::Button btnOK,btnQuit;
        int m_mode;

        editRelease newEidtRelease;

        Glib::RefPtr<Gtk::MessageDialog> refInfDialog;
        void on_Dialog_buttonEvent(int);
        
        void on_btnOK_clicked();
        void on_btnQuit_clicked();


        type_signal_finish m_signal_finish;
};